import './index.less';
import {getElement} from '../../utils/network/networkutils'
let btn=getElement('btn');


window.onload = function () {
    setTimeout(changeTime, 1000);
};
function changeTime() {
    let number = getElement("number");
    let numbervalue=number.innerHTML;
    numbervalue = parseInt(numbervalue);
    numbervalue--;
    if (numbervalue < 0) {
        window.location = window.location.href='/official-index.html';
    } else {
        number.innerHTML= numbervalue;
        setTimeout(changeTime, 1000);
    }
}

btn.onclick=function () {
    window.location.href='/official-index.html';
};